/* modifytest.c - part of ziproxy package
 *  2002 Juraj Variny <variny@anex.sk>
 *  
 *  Released subject to GNU General Public License
 */

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>

#include "textmodify.h"

int main()
{
		char* buf, *outb;
		int ch,len=4096,pos=0;
		buf=malloc(len);

		while((ch=getchar())!=EOF)
		{
				if (pos + 1 >= len)
						buf = realloc(buf,(len*=2) + 1);
				buf[pos++] = ch;
		}
		
		buf[pos]='\0';
		
		modify_img_src(buf, &outb);
		fwrite(outb,strlen(outb),1,stdout);
		return 0;
}
